package io.renren.modules.erp.dao;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.erp.entity.Msg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface MsgMapperEx {

    List<Msg> selectByConditionMsg(
            @Param("name") String name,
            Page<Msg> page);

    Long countsByMsg(
            @Param("name") String name);

    int batchDeleteMsgByIds(@Param("ids") String ids[]);

    int insertSelectiveByTask(Msg record);

    int checkIsNameExistByTask(@Param("msgTitle") String msgTitle);

    Long getMsgCountByStatus(
            @Param("status") String status,
            @Param("userId") Long userId);
}